﻿$(document).ready(function () {


    $("#finish").click(function () {
        loading('stock');

        var stockcode = $("#stockcode").val();
        var year = $("#year-drop").find("option:selected").val();
        var yearText = $("#year-drop").find("option:selected").text();
        var quarter = $("#quarter-drop").find("option:selected").val();
        var quarterText = $("#quarter-drop").find("option:selected").text();
        var detailYear = $("#detailYear-drop").find("option:selected").val();
        var detailYearText = $("#detailYear-drop").find("option:selected").text();
        var unit = $("#unit-drop").find("option:selected").val();
        var unitText = $("#unit-drop").find("option:selected").text();
        var reportCate = $("#reportCate-drop").find("option:selected").val();
        var reportCateText = $("#reportCate-drop").find("option:selected").text();
        var reportType = $("#reportType-drop").find("option:selected").val();
        var reportTypeText = $("#reportType-drop").find("option:selected").text();

        if ($.trim(stockcode).length == 0) {
            removeLoading('stock');
            showMessage("股票代码不能为空");
            return;
        }

        //requestData($.trim(stockcode), year, quarter, detailYear, unit, reportCate, reportType);
    })

}); 
 